<?php if(count($data['list'])> 0):?>
<div class="faq-bound" id="tbl-faq_cid<?php echo $data['cate_id']?>">
	<?php foreach($data['list'] as $faq): ?>
	<div class="item-faq">
		<div class="question"><a href="<?php echo url_for2('faq_detail', array('id'=>$faq['id'],'title'=>UserStringHelper::titleToAddress($faq['title'])))?>"><?php echo $faq['title']?></a></div>
		<div class="name"><?php echo $faq['full_name']?> <span> ( gửi: <?php echo DateHelper::dateFormatGMT($faq['created_at']);?> )</span></div>
		<div class="content"><?php echo html_entity_decode(nl2br($faq['question']))?></div>
		<div><a href="<?php echo url_for2('faq_detail', array('id'=>$faq['id'],'title'=>UserStringHelper::titleToAddress($faq['title'])))?>">xem thêm</a></div>
	</div>
	<?php endforeach; ?>
</div>
<div class="clr"></div>
<div style="border-top: 1px solid #ccc; padding:10px 0px">
	<a href="<?php echo url_for2('faq_form')?>" class="button" style="margin-top:-5px">Gửi câu hỏi </a>
	<?php if(count($data['pagination_pager']) > 1) :?>
	<div class="pagination">
		<span>Trang</span>
		<span class="pagination"> 
		<?php foreach ($data['pagination_pager'] as $p):?>
			<a href="#" class="<?php echo $p['page_class']?> page-click" data-page="<?php echo $p['page_num']?>" data-id="<?php echo $data['id']?>"><?php echo $p['page_num']?></a>
		<?php endforeach;?>
		</span>
		<div class="clr"></div>
	</div>
	<script language="javascript">
	$('a.page-click').click(function(){
			HOME.loadProduct($(this).attr('data-page'));
		return false;
	});
	</script>
	<?php endif;?>
	<div class="clr"></div>
</div>
<?php else: ?>
<div style="padding-top:100px;text-align:center">Không tìm thấy sản phẩm theo yêu cầu</div>
<?php endif?>
<div class="clr"></div>